package com.upcode.weighing.vo.req.app;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class AnnouncementUpdateVo implements Serializable {

    @NotNull(message = "id参数不能为空！")
    private Long id;
    /**
     * 标题
     */
    @NotEmpty(message = "title参数不能为空！")
    private String title;
    /**
     * 简介
     */
    private String explain;
    /**
     * 内容
     */
//    @NotEmpty(message = "content参数不能为空！")
    private String content;
    /**
     * 图片id
     */
    @NotEmpty(message = "fileId参数不能为空！")
    private String fileId;

    /**
     * 类型：1资讯公告 2新疆焦点
     */
    @NotNull(message = "公告类型不能为空")
    private Integer type;

    /**
     * 跳转链接
     */
    private String jumpLink;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getJumpLink() {
        return jumpLink;
    }

    public void setJumpLink(String jumpLink) {
        this.jumpLink = jumpLink;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
